<?php header("content-Type:text/html;charset=utf-8");?>
<html>
<head>
    <title>商品信息管理</title>
    <style type="text/css">
        html,body{
            width:100%;
            background-color:#2d241f;
        }
        form,h3{
            width:100%;
            text-align:center;
        }
        table{
            position:relative;
            left:50%;
            margin-left:-150px;
        }
        th,td,h3{
            color:#7e725e;
        }

    </style>
</head>
<body>
    <?php include("menu.php");//导入导航栏  ?>
    <h3>发布商品信息</h3>
    <form action="action.php?action=add"  method="post">
        <table border="0" width="500">
            <tr>
                <td align="right">名称：</td>
                <td><input type="text" name="name"/></td>
            </tr>
            <tr>
                <td align="right">类型：</td>
                <td>
                    <select name="typeid">
                        <?php
                        include("dbconfig.php");
                        foreach($typelist as $j=>$z)
                        {
                            echo "<option value='{$j}'>{$z}</option>";
                        }
                        ?>
                    </select>
                </td>
            </tr>
            <tr>
                <td align="right">单价：</td>
                <td><input type="text" name="price"/></td>
            </tr>
            <tr>
                <td align="right">库存：</td>
                <td><input type="text" name="total"/></td>
            </tr>
            <tr>
                <td align="right" valign="top">描述：</td>
                <td><textarea rows="5" cols="20" name="note"></textarea></td>
            </tr>
            <tr>
                <td colspan="2" align="center">
                    <input type="submit" value="添加"/>&nbsp;&nbsp;
                    <input type="reset" value="重置"/>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>

